for idx = 1:length(condition_index_lvn.condition_index)
    switch condition_index_pos.condition_index(idx)
        case 1001
            switch condition_index_pos.condition_index(idx)
                case 10
                    condition_index(idx) = 211;
                case 100
                    condition_index(idx) = 311;
            end
        case 1002
            switch condition_index_pos.condition_index(idx)
                case 10
                    condition_index(idx) = 221;
                case 100
                    condition_index(idx) = 321;
            end
        case 1003
            switch condition_index_pos.condition_index(idx)
                case 10
                    condition_index(idx) = 231;
                case 100
                    condition_index(idx) = 331;
            end
        case 2001
            switch condition_index_pos.condition_index(idx)
                case 20
                    condition_index(idx) = 212;
                case 200
                    condition_index(idx) = 312;
            end
        case 2002
            switch condition_index_pos.condition_index(idx)
                case 20
                    condition_index(idx) = 222;
                case 200
                    condition_index(idx) = 322;
            end
        case 2003
            switch condition_index_pos.condition_index(idx)
                case 20
                    condition_index(idx) = 232;
                case 200
                    condition_index(idx) = 332;
            end
        case 3001
            switch condition_index_pos.condition_index(idx)
                case 30
                    condition_index(idx) = 213;
                case 300
                    condition_index(idx) = 313;
            end
        case 3002
            switch condition_index_pos.condition_index(idx)
                case 30
                    condition_index(idx) = 223;
                case 300
                    condition_index(idx) = 323;
            end
        case 3003
            switch condition_index_pos.condition_index(idx)
                case 10
                    condition_index(idx) = 233;
                case 100
                    condition_index(idx) = 333;
            end
        case 4001
            switch condition_index_pos.condition_index(idx)
                case 40
                    condition_index(idx) = 214;
                case 400
                    condition_index(idx) = 314;
            end
        case 4002
            switch condition_index_pos.condition_index(idx)
                case 40
                    condition_index(idx) = 224;
                case 400
                    condition_index(idx) = 324;
            end
        case 4003
            switch condition_index_pos.condition_index(idx)
                case 40
                    condition_index(idx) = 234;
                case 400
                    condition_index(idx) = 334;
            end
        case 5001
            switch condition_index_pos.condition_index(idx)
                case 50
                    condition_index(idx) = 215;
                case 500
                    condition_index(idx) = 315;
            end
        case 5002
            switch condition_index_pos.condition_index(idx)
                case 50
                    condition_index(idx) = 225;
                case 500
                    condition_index(idx) = 325;
            end
        case 5003
            switch condition_index_pos.condition_index(idx)
                case 50
                    condition_index(idx) = 235;
                case 500
                    condition_index(idx) = 335;
            end
        case 6001
            switch condition_index_pos.condition_index(idx)
                case 60
                    condition_index(idx) = 216;
                case 600
                    condition_index(idx) = 316;
            end
        case 6002
            switch condition_index_pos.condition_index(idx)
                case 60
                    condition_index(idx) = 226;
                case 600
                    condition_index(idx) = 326;
            end
        case 6003
            switch condition_index_pos.condition_index(idx)
                case 60
                    condition_index(idx) = 236;
                case 600
                    condition_index(idx) = 336;
            end
        otherwise
            condition_index(idx) = 100+condition_index_pos.condition_index(idx);
    end
end